package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Leap_Year {

	public static void main(String[] args) {
		
		System.out.println("Enter a number");
		Scanner sc=new Scanner(System.in);
		int year=sc.nextInt();
		if(year%400==0)
		{
			System.out.println(year +" "+"is a leap year");
		}
		else if(year%100==0)
		{
			System.out.println(year +" "+"is  not a leap year");
		}
		else if(year%4==0)
		{
			System.out.println(year +" "+"is a leap year");
		}
		else 
		{
			System.out.println(year +" "+"is not a leap year");
		}

	}

}
